<template>
  <!-- 设计团队 -->
  <div class="design-team">
      <!-- 团队成员 -->
      <div class="process-title">
          <span class="title-left">团队成员</span>
      </div>
    <!-- 设计师列表 -->
    <div class="designer-list">
        <!-- 每一个设计师 -->
      <div class="no-text" >
              <p>暂无团队成员</p>
       </div>
        <!-- <div class="designer-item">
            <dl>
                <dt>
                    <img src="~@/assets/designer.jpg"/>
                </dt>
                <dd>
                    <p>
                        <span class="name">杨若雪</span>
                        <span class="name-after">首席设计师</span>
                    </p>
                    <p>
                        <span class="age">从业时间:</span>
                        <span class="age-long">9年</span>
                    </p>
                    <p>
                        <span  class="age">擅长风格：</span>
                        <span class="age-long">简中式风格、现代简约、欧式风格、田园风格</span>
                    </p>
                </dd>
            </dl>
            <p class="p-last"><span>个人宣言:</span><span>简中式风格、现代简约、欧式风格、田园风格简中式风格、现代简约、欧式风格、田园风格</span></p>
        </div> -->
    </div>
 
  </div>
</template>
<script>
import { GetTeams } from "@/api/zgz";
export default {
  props: {
    id: Number
  },
  data() {
    return {
      Comment: "",
      flag: true,
      pageIndex:1,
    };
  },
  created() {
    if (this.cindex == "true") {
      this.flag = false;
    }
    this.initialization();
  },
  methods: {
    initialization() {
      this.$indicator.open();
      setTimeout(() => {
        GetTeams(this.id,this.pageIndex).then(res => {
          if (res.StatusCode === 200) {
            this.Comment = res.Data;
            this.$indicator.close();
          }
        });
      }, 400);
    },
    handleclick(e) {
      $(".position-class")
        .children("ul")
        .children("li")
        .each(function(index) {
          $(".position-class")
            .children("ul")
            .children("li")
            .eq(index)
            .removeClass("active");
        });
      var target = e.target || e.srcElement;
      if (target.tagName !== "UL") {
        $(target).addClass("active");
      }
    },
   
  }
};
</script>

<style lang="scss" scoped>
dl {
  margin: 0 !important;
}
.design-team {
  padding-bottom: 22px;
  border-bottom: 10px solid #f4f4f4;

  // 标题
  .process-title {
    height: 58.3px;
    width: 100%;
    padding-left: 12px;
    border-bottom: 1px solid #eeeeee;
    overflow: hidden;
    .title-left {
      line-height: 58.3px;
      font-size: 16px;
      color: #282828;
      font-weight: #282828;
      display: inline-block;
      float: left;
      font-weight: bolder;
    }
    .title-right {
      display: inline-block;
      float: right;
      line-height: 58.3px;
      margin-right: 12px;
      font-size: 12px;
      color: #999999;

      > span {
        display: block;
        float: left;
      }
      > .icon {
        display: block;
        float: left;
        margin-top: 22px;
      }
    }
  }
  // 职位类别
  .position-class {
    width: 100%;
    overflow: hidden;
    font-size: 14px;
    padding: 22px 12px;
    background: #f4f4f4;
    > div {
      float: left;
      color: #666666;
      margin-right: 13px;
      margin-top: 5.595px;
    }
    > ul {
      float: left;
      color: #282828;

      li {
        float: left;
        padding: 5.6px 10px;
      }

      .active {
        background: #fd4f00;
        color: #ffffff;
      }
    }
  }
  // 设计师列表
  .designer-list {
    padding: 22px 10px;
    border-bottom: 2px solid #f4f4f4;

    .designer-item {
      margin-bottom: 14px;
      > dl {
        overflow: hidden;
        padding-bottom: 12px;
        border-bottom: 1px dashed #cccccc;
        margin-bottom: 14px;
        display: flex;
        dt {
          width: 44px;
          height: 44px;
          > img {
            width: 100%;
            max-width: 100%;
            height: auto;
            display: block;
          }
        }
        dd {
          margin-left: 6px;
          font-size: 13px;
          .name {
            color: #282828;
            display: inline-block;
            margin-right: 9px;
          }
          .name-after {
            color: #999999;

            margin-bottom: 13px;
          }
          .age {
            color: #333333;
            display: inline-block;
            margin-right: 7px;
          }
          .age-long {
            color: #999999;
          }
          > :first-child {
            margin-bottom: 13px;
          }
          > :nth-child(2) {
            margin-bottom: 8px;
          }
        }
      }
      .p-last {
        color: #666666;
        font-size: 13px;
        width: 392px;
        overflow: hidden;
        margin-top: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
  }
}
</style>
